package ink.ykb.actDemo.config;

import org.beetl.sql.core.Interceptor;
import org.beetl.sql.ext.spring4.SqlManagerFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.ibeetl.starter.BeetlSqlCustomize;

@Configuration
public class BeetlSqlConfig {
	
    @Bean
    public BeetlSqlCustomize beetlSqlCustomize(){
      return  new BeetlSqlCustomize(){
        public void customize(SqlManagerFactoryBean sqlManagerFactoryBean){
				
        	sqlManagerFactoryBean.setInterceptors(new Interceptor[0]);
//				sqlManagerFactoryBean.setInterceptors(new Interceptor[]{new DebugInterceptor()});
        } 
      };
    }
}
